﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Swproject
{
    class account
    {
        private float balance;

        // the withdraw method
        public float withdraw(float takenVal) 
        {
            if (takenVal >= 5000)
            {
                MessageBox.Show("The Ammount Of The Money Can Not Exceed 5000 pounds");
                return 0;
            }

            else if (takenVal <= 10)
            {
                MessageBox.Show("The Ammount Of The Money Can Not be less than 10 pounds");
                return 0;
            }

            else
            {
                // make a query and update the value then return the new value of the balance

                return 0;
            }

        }
        // end of the withdraw method
        public float deposit(float addedValue) 
        {
            if (addedValue <= 100)
            {
                MessageBox.Show("The Ammount Of The Money Can Not Be Less Than 100 pounds");
                return 0;
            }
            else
            {
                // make the query and update the value of the balance
                return addedValue;


            }// END OF HTE METHOD Deposit

        }
    }
}
